package com.skyon.rule.xom;

import java.util.LinkedHashMap;
import java.util.Map;

public class OutPut {

private Map<String, Object> resultMap;

public OutPut(){
	this.resultMap = new LinkedHashMap<String, Object>();
}

public Map<String, Object> getResultMap() {
	return resultMap;
}

public void setResultMap(Map<String, Object> resultMap) {
	this.resultMap = resultMap;
}

public void addSocre(String key,Double score){
	if (this.resultMap.get(key) == null) {
		this.resultMap.put(key,0.0);
	}
	this.resultMap.put(key, (Double)this.resultMap.get(key) + score);
}

public void addSocre(String key){
	addSocre(key,1.0);
}
}
